<template>
	<view class="my-container">
	  <my-login v-if="isToken"></my-login>
	  <my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
import badgeMix from '@/mixins/tabber-badge.js'
import {mapState} from 'vuex'
export default {
	mixins: [badgeMix],
  data(){
    return {
		
    }
  },
  computed:{
	...mapState('m_user',['token']),
	isToken(){
		return this.token===''
	}
  },

 
}
</script>

<style lang="scss">
page,
.my-container {
  height: 100%;
}
</style>
